<style>
.current{
	background:repeat-x #FFFFFF bottom;
	text-decoration: underline;
}
</style>
<div class="frame_pmDiv">
    <div class="pmItemDiv">
        <? if($this->pageArray['pageNumber']>0):?>
        <form name="scenceForm" id="scenceForm" action="administrator<?=CHOSING_DE?>question<?=CHOSING_DE?>delsubject" method="post">
        <table width="100%" border="1" cellpadding="0" cellspacing="0" bordercolor="#CEE7FF" style="border-collapse:collapse">
            <tr>
                    <td width="20%" height="30" class="bbgg">
                            <strong>题目</strong>
                    </td>
              <td width="12%" class="bbgg">结果&nbsp;</td>
              <td width="12%" class="bbgg"><strong>截止日期</strong></td>
                    <td width="12%" class="bbgg">
                            <strong>日期</strong>
                    </td>
                    <td width="10%" class="bbgg">
                            <strong>状 态</strong>
                    </td>
                    <td width="16%" class="bbgg">
                            <strong>编 辑</strong>
                    </td>
                    <td width="20%" class="bbgg">
                            <strong>操 作</strong>
                    </td>
            </tr>
            <? for($i=0;$i<count($this->itemArray);$i++):?>
            <tr bgcolor="#FFFFFF">
                    <td height="30" align="center" valign="middle">
                            <?=$this->itemArray[$i]['title']?>
                    </td>
              <td align="center">&nbsp;<?=$this->itemArray[$i]['answers']?></td>
              <td align="center">&nbsp;<?=date('Y-m-d H:i:s',$this->itemArray[$i]['end_time'])?></td>
                    <td align="center">
                            <?=date('Y-m-d',$this->itemArray[$i]['update_time'])?>
                    </td>
                    <td align="center">
                            <?if($this->itemArray[$i]['isend'] == 0):?>
                                进行中
                            <?else:?>
                                结束
                            <?endif;?>
                    </td>
                    <td align="center">
                            <?if($this->itemArray[$i]['isend'] == 0):?>
                                <a href="administrator<?=CHOSING_DE?>question<?=CHOSING_DE?>editsubject?id=<?=$this->itemArray[$i]['id']?>">编 辑</a>
                            <?else:?>
                                结束
                            <?endif;?>
                    </td>
                    <td align="center">
                            <input type="checkbox" name="itemArray[]" value="<?=$this->itemArray[$i]['id']?>" />
                    </td>
            </tr>
            <? endfor;?>
        </table>
        <br />
        <div style="margin:10px">全选<input type="checkbox" onClick="selectAll(this,'scenceForm','itemArray[]');" />　<input onClick="return checkShouldDelItems('scenceForm','itemArray[]',1);" type="submit" value="删除"/>  <input type="button" onclick="location.href='administrator<?=CHOSING_DE?>question<?=CHOSING_DE?>addsubject'" value="添加题目"/></div>
        <div style="margin:10px">共 <?=$this->pageArray['pageNumber']?> 页　<?=$this->pageString?></div>
        <div></div>
        </form>
    <?else:?>
    <a href="administrator<?=CHOSING_DE?>question<?=CHOSING_DE?>addsubject">添加题目</a>
    <?=$this->getMsg('未添加题目信息!');?>
    <?endif;?>
    </div>
</div>